package com.zhongdone.pattern.structural.bridge.message.demo;

/**
 * 加急消息
 */
public class UrgencyMessage extends AbstractMessage {

    public UrgencyMessage(IMessage iMessage) {
        super(iMessage);
    }

    @Override
    public void sendMessage(String message, String toUser) {
        message = "加急：" + message;
        super.sendMessage(message, toUser);
    }

    /**
     * 功能扩展，监控某个消息的处理状态
     * @param messageID
     * @return
     */
    public Object watch(String messageID){
        // 根据消息ID查询某个消息的处理状态
        return null;
    }

}
